package com.xuexi.springcloud.service;

import com.xuexi.springcloud.pego.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient
public interface DeptClientService {

    public Dept queryByIde(@PathVariable("id") Long id);

    public List<Dept> queryAll();
    public Boolean addDept(Dept dept);
}
